$(function(){
    console.log('来自于demo02');

    $.http.get('../../src/json/demo02.json', function(res){

        var html = '';

        res.data.forEach( item => {

            var htmlIn = '';

            item.color.forEach( i => {
                htmlIn += $.convertTemplate('#demo02-in', i, i);
            });

            item.html = htmlIn;
            html += $.convertTemplate('#demo02', item, '');

        });

        $('.demo02').after(html);
    })

});